<template>
	<view class="activityZone">
		<view class="complaints_header" :style="{ paddingTop: StatusBar + 'px' }">
			<view class="header_box">
				<view class="header_back" @click="navigateBack()">
					<text class="iconfont icon-Left"></text>
				</view>
				<view class="header_title">活动专区</view>
			</view>
		</view>
		<view class="activityZone_list">
			<view class="imgs" v-for="item in activity_data" @click="navigateTo(item.url)" >
				<image :src="item.img" mode="widthFix" style="width: 100%;"></image>
				<!-- <view class="flex tip" >
					<view class="tip_left">
						淘气游杯永劫无间水友赛
					</view>
					<view class="tip_right">
						报名通道开启
					</view>
				</view> -->
			</view>
		</view>
	</view>
</template>

<script>
	import { activity_list } from '@/api/activity'
	export default {
		data() {
			return {
				activity_data: []
			}
		},
		onLoad() {
			this.activity_list()
		},
		methods: {
			async activity_list(){
				let data = await activity_list()
				if (data) {
					this.activity_data = data.data
				}
			}
		}
	}
</script>

<style lang="scss" scoped>
	.activityZone {
		.complaints_header {
			background: #fff;
			.header_box {
				display: flex;
				align-items: center;
				padding: 28rpx 32rpx;
				position: relative;
				font-weight: bold;
				.header_back {
					margin-left: 30rpx;
					display: flex;
					align-items: center;
					justify-content: center;
				}
				.header_title {
					position: absolute;
					top: 50%;
					left: 50%;
					transform: translate(-50%, -50%);
				}
			}
		}
		.activityZone_head {
			height: 80rpx;
			line-height: 80rpx;
			display: flex;
			align-items: center;
			.icon-Left {
				position: absolute;
				top: 10rpx;
				left: 25rpx;
				font-size: 28rpx;
				color: #09244B;
				font-weight: bold;
			}
		}
		.activityZone_list {
			background: #F7F8FA;
			border-radius: 0rpx 0rpx 0rpx 0rpx;
			height: 1448rpx;
			padding: 25rpx;
			
			z-index: 8;
			.imgs {
				margin-bottom: 10rpx;
				position: relative;
				.tip {
					width: 100%;
					justify-content: space-between;
					position: absolute;
					bottom: 5rpx;
					z-index: 12;
					.tip_left {
						font-weight: 500;
						font-size: 28rpx;
						color: #FFFFFF;
						padding-top: 30rpx;
						padding-left: 15rpx;
					}
					.tip_right {
						width: 222rpx;
						height: 74rpx;
						background: linear-gradient( 90deg, #58110E 0%, #CF504F 48%, #CB1A1A 100%);
						box-shadow: 4rpx 4rpx 8rpx 0rpx rgba(208,65,65,0.25);
						border-radius: 44rpx 12rpx 12rpx 12rpx;
						font-weight: 800;
						font-size: 28rpx;
						color: #FFFFFF;
						text-align: center;
						margin-right: 35rpx;
						line-height: 70rpx;
						margin-bottom: 15rpx;
					}
				}
			}
		}
		
	}
</style>